#ifdef _WINDOWS
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif

#include "simple_gl.h"
#include "simple_input.h"
#include "tetris_game.h"

#include "SDL.h"

int exitFlag = 0;
int gameState = STATE_MENU;

#ifdef _WINDOWS
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,LPSTR lpCmdLine, int nCmdShow ) {
#else
int main(int argc, char*argv[]) {
#endif
	GL_Init(1024,768, 0, "Tetryx v0.3");
	Game_Init();
	while(!exitFlag) {
		Input_Process();
		Game_Render();
	}
	GL_Shutdown();
	return 1;
}

